package CodeOne;

import java.util.Scanner;

/**
 * @author ASUS
 */
public class StringRevise {
  public static void main(String[] args) {
    Scanner inputScan = new Scanner(System.in);
    String string = inputScan.nextLine();
    String result = new StringBuffer(string).reverse().toString();
    System.out.println(result);
  }
}
